package helloworld.dao;

import helloworld.dao.DAOException;
import helloworld.exception.DuplicateTeacherException;
import helloworld.admin.bean.TeacherAdminBean;;

/** 
 * @author TUYEN-DM
 *         <p>
 *         2009/05/13
 *         </p>
 *         <p>
 *         TeacherDao is the DAO interface object of Teacher.
 *         </p>
 */
public interface TeacherDao {
	public TeacherAdminBean fetchDetail(String teacherName) throws DAOException;
	public TeacherAdminBean fetchDetailID(int teacherID) throws DAOException;
	public TeacherAdminBean[] find(String teacherName) throws DAOException;
	public int create(TeacherAdminBean teacher) throws DAOException,DuplicateTeacherException;
	public int update(TeacherAdminBean teacher) throws DAOException,DuplicateTeacherException;
	public void delete(int teacherID) throws DAOException;

}
